'''
/*
 * @Author: wevsmy 
 * @Date: 2017-10-26 18:52:35 
 * @Last Modified by: wevsmy
 * @Last Modified time: 2017-10-26 19:08:16
 */
'''
from socket import *
import time

clientSocket = socket(AF_INET,SOCK_STREAM)
clientSocket.connect(("192.168.21.132",8080))
for i in range(3):
    clientSocket.send("你好啊！".encode("gb2312"))
    time.sleep(1)
    
recvData = clientSocket.recv(1024)

print("recvData:%s"%recvData.decode("gb2312"))
    

clientSocket.close()